<?php 
$sql = 'SELECT cat_id,cat_name FROM categories_news';
$db = new DBQuery;
$categories = $db->query($sql);
?>
<ul class="subNav">
<?php foreach($categories as $cat):?>
	<li><a class="subNavA" href="<?=generate_cat_url('news',$cat)?>"><?php echo $cat['cat_name']?></a></li>
<?php endforeach;?>
</ul>
